package com.zhaowei.allinpay.member;

import com.zhaowei.allinpay.DemoUtils;
import com.zhaowei.allinpay.IDemoHandler;
import org.json.JSONObject;

public class SetCompanyInfoHandler implements IDemoHandler {
    @Override
    public JSONObject getRequestParams() throws Exception {
        JSONObject companyBasicInfo = new JSONObject();
        companyBasicInfo.put("companyName", "湖北分公司");
        companyBasicInfo.put("companyAddress", "湖北武汉");
        companyBasicInfo.put("authType", 1);
        companyBasicInfo.put("uniCredit", "123456789");
        companyBasicInfo.put("businessLicense", "123456789");
        companyBasicInfo.put("organizationCode", "123456789");
        companyBasicInfo.put("taxRegister", "123456789");
        companyBasicInfo.put("expLicense", "2020-01-11");
        companyBasicInfo.put("telephone", "027-85565803");
        companyBasicInfo.put("legalName", "詹新华");
        companyBasicInfo.put("identityType", 1);
        companyBasicInfo.put("legalIds", DemoUtils.rsaEncrypt("330724199608181636"));
        companyBasicInfo.put("legalPhone", "18986266666");
        companyBasicInfo.put("accountNo", DemoUtils.rsaEncrypt("6228481111111111111"));
        companyBasicInfo.put("parentBankName", "中国农业银行");
        companyBasicInfo.put("bankCityNo", "330212");
        companyBasicInfo.put("bankName", "农业银行宁波支行");
        companyBasicInfo.put("unionBank", "123456789123");

        JSONObject companyExtendInfo = new JSONObject();

        JSONObject param = new JSONObject();
        param.put("bizUserId", "company13");
        param.put("backUrl", "www.baidu.com" +
                "");
        param.put("companyBasicInfo", companyBasicInfo);
        param.put("companyExtendInfo", companyExtendInfo);
        param.put("isAuth", false);


        return param;
    }
}
